package com.huice.base;

import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConfigurator;


public class Log {

    static {
//        DOMConfigurator.configure("E:\\source\\java\\jk\\jkUI\\log4j.xml");
//        DOMConfigurator.configure("jkUI/log4j.xml");
        DOMConfigurator.configure("log4j.xml");
    }
    private static Logger logger = Logger.getLogger(Log.class);


    public static void debug(String message, Throwable t) {
        logger.debug(message, t);
    }

    public static void debug(String message) {
        logger.debug(message);
    }

    public static void info(String message, Throwable t) {
        logger.info(message, t);
    }

    public static void info(String message) {
        logger.info(message);
    }

}
